Optimal. Leaf size=213 \[ \frac {c x}{e^2}+\frac {\left (c d^2-b d e+a e^2\right ) x}{3 d e^2 \left (d+e x^3\right )}+\frac {\left (4 c d^2-e (b d+2 a e)\right ) \tan ^{-1}\left (\frac {\sqrt [3]{d}-2 \sqrt [3]{e} x}{\sqrt {3} \sqrt [3]{d}}\right )}{3 \sqrt {3} d^{5/3} e^{7/3}}-\frac {\left (4 c d^2-e (b d+2 a e)\right ) \log \left (\sqrt [3]{d}+\sqrt [3]{e} x\right )}{9 d^{5/3} e^{7/3}}+\frac {\left (4 c d^2-e (b d+2 a e)\right ) \log \left (d^{2/3}-\sqrt [3]{d} \sqrt [3]{e} x+e^{2/3} x^2\right )}{18 d^{5/3} e^{7/3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 213, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {1423, 396, 206,
31, 648, 631, 210, 642} \begin {gather*} \frac {\text {ArcTan}\left (\frac {\sqrt [3]{d}-2 \sqrt [3]{e} x}{\sqrt {3} \sqrt [3]{d}}\right ) \left (4 c d^2-e (2 a e+b d)\right )}{3 \sqrt {3} d^{5/3} e^{7/3}}+\frac {x \left (a e^2-b d e+c d^2\right )}{3 d e^2 \left (d+e x^3\right )}+\frac {\log \left (d^{2/3}-\sqrt [3]{d} \sqrt [3]{e} x+e^{2/3} x^2\right ) \left (4 c d^2-e (2 a e+b d)\right )}{18 d^{5/3} e^{7/3}}-\frac {\log \left (\sqrt [3]{d}+\sqrt [3]{e} x\right ) \left (4 c d^2-e (2 a e+b d)\right )}{9 d^{5/3} e^{7/3}}+\frac {c x}{e^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 206
Rule 210
Rule 396
Rule 631
Rule 642
Rule 648
Rule 1423
Rubi steps
\begin {align*} \int \frac {a+b x^3+c x^6}{\left (d+e x^3\right )^2} \, dx &=\frac {\left (c d^2-b d e+a e^2\right ) x}{3 d e^2 \left (d+e x^3\right )}-\frac {\int \frac {c d^2-e (b d+2 a e)-3 c d e x^3}{d+e x^3} \, dx}{3 d e^2}\\ &=\frac {c x}{e^2}+\frac {\left (c d^2-b d e+a e^2\right ) x}{3 d e^2 \left (d+e x^3\right )}-\frac {\left (4 c d^2-e (b d+2 a e)\right ) \int \frac {1}{d+e x^3} \, dx}{3 d e^2}\\ &=\frac {c x}{e^2}+\frac {\left (c d^2-b d e+a e^2\right ) x}{3 d e^2 \left (d+e x^3\right )}-\frac {\left (4 c d^2-e (b d+2 a e)\right ) \int \frac {1}{\sqrt [3]{d}+\sqrt [3]{e} x} \, dx}{9 d^{5/3} e^2}-\frac {\left (4 c d^2-e (b d+2 a e)\right ) \int \frac {2 \sqrt [3]{d}-\sqrt [3]{e} x}{d^{2/3}-\sqrt [3]{d} \sqrt [3]{e} x+e^{2/3} x^2} \, dx}{9 d^{5/3} e^2}\\ &=\frac {c x}{e^2}+\frac {\left (c d^2-b d e+a e^2\right ) x}{3 d e^2 \left (d+e x^3\right )}-\frac {\left (4 c d^2-e (b d+2 a e)\right ) \log \left (\sqrt [3]{d}+\sqrt [3]{e} x\right )}{9 d^{5/3} e^{7/3}}+\frac {\left (4 c d^2-e (b d+2 a e)\right ) \int \frac {-\sqrt [3]{d} \sqrt [3]{e}+2 e^{2/3} x}{d^{2/3}-\sqrt [3]{d} \sqrt [3]{e} x+e^{2/3} x^2} \, dx}{18 d^{5/3} e^{7/3}}-\frac {\left (4 c d^2-e (b d+2 a e)\right ) \int \frac {1}{d^{2/3}-\sqrt [3]{d} \sqrt [3]{e} x+e^{2/3} x^2} \, dx}{6 d^{4/3} e^2}\\ &=\frac {c x}{e^2}+\frac {\left (c d^2-b d e+a e^2\right ) x}{3 d e^2 \left (d+e x^3\right )}-\frac {\left (4 c d^2-e (b d+2 a e)\right ) \log \left (\sqrt [3]{d}+\sqrt [3]{e} x\right )}{9 d^{5/3} e^{7/3}}+\frac {\left (4 c d^2-e (b d+2 a e)\right ) \log \left (d^{2/3}-\sqrt [3]{d} \sqrt [3]{e} x+e^{2/3} x^2\right )}{18 d^{5/3} e^{7/3}}-\frac {\left (4 c d^2-e (b d+2 a e)\right ) \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 \sqrt [3]{e} x}{\sqrt [3]{d}}\right )}{3 d^{5/3} e^{7/3}}\\ &=\frac {c x}{e^2}+\frac {\left (c d^2-b d e+a e^2\right ) x}{3 d e^2 \left (d+e x^3\right )}+\frac {\left (4 c d^2-e (b d+2 a e)\right ) \tan ^{-1}\left (\frac {\sqrt [3]{d}-2 \sqrt [3]{e} x}{\sqrt {3} \sqrt [3]{d}}\right )}{3 \sqrt {3} d^{5/3} e^{7/3}}-\frac {\left (4 c d^2-e (b d+2 a e)\right ) \log \left (\sqrt [3]{d}+\sqrt [3]{e} x\right )}{9 d^{5/3} e^{7/3}}+\frac {\left (4 c d^2-e (b d+2 a e)\right ) \log \left (d^{2/3}-\sqrt [3]{d} \sqrt [3]{e} x+e^{2/3} x^2\right )}{18 d^{5/3} e^{7/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.14, size = 199, normalized size = 0.93 \begin {gather*} \frac {18 c \sqrt [3]{e} x+\frac {6 \sqrt [3]{e} \left (c d^2+e (-b d+a e)\right ) x}{d \left (d+e x^3\right )}+\frac {2 \sqrt {3} \left (4 c d^2-e (b d+2 a e)\right ) \tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{e} x}{\sqrt [3]{d}}}{\sqrt {3}}\right )}{d^{5/3}}-\frac {2 \left (4 c d^2-e (b d+2 a e)\right ) \log \left (\sqrt [3]{d}+\sqrt [3]{e} x\right )}{d^{5/3}}+\frac {\left (4 c d^2-e (b d+2 a e)\right ) \log \left (d^{2/3}-\sqrt [3]{d} \sqrt [3]{e} x+e^{2/3} x^2\right )}{d^{5/3}}}{18 e^{7/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.24, size = 156, normalized size = 0.73
method | result | size |
risch | \(\frac {c x}{e^{2}}+\frac {\left (a \,e^{2}-d e b +c \,d^{2}\right ) x}{3 d \,e^{2} \left (e \,x^{3}+d \right )}+\frac {\munderset {\textit {\_R} =\RootOf \left (e \,\textit {\_Z}^{3}+d \right )}{\sum }\frac {\left (2 a \,e^{2}+d e b -4 c \,d^{2}\right ) \ln \left (x -\textit {\_R} \right )}{\textit {\_R}^{2}}}{9 e^{3} d}\) | \(88\) |
default | \(\frac {c x}{e^{2}}+\frac {\frac {\left (a \,e^{2}-d e b +c \,d^{2}\right ) x}{3 d \left (e \,x^{3}+d \right )}+\frac {\left (2 a \,e^{2}+d e b -4 c \,d^{2}\right ) \left (\frac {\ln \left (x +\left (\frac {d}{e}\right )^{\frac {1}{3}}\right )}{3 e \left (\frac {d}{e}\right )^{\frac {2}{3}}}-\frac {\ln \left (x^{2}-\left (\frac {d}{e}\right )^{\frac {1}{3}} x +\left (\frac {d}{e}\right )^{\frac {2}{3}}\right )}{6 e \left (\frac {d}{e}\right )^{\frac {2}{3}}}+\frac {\sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 x}{\left (\frac {d}{e}\right )^{\frac {1}{3}}}-1\right )}{3}\right )}{3 e \left (\frac {d}{e}\right )^{\frac {2}{3}}}\right )}{3 d}}{e^{2}}\) | \(156\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 168, normalized size = 0.79 \begin {gather*} c x e^{\left (-2\right )} - \frac {\sqrt {3} {\left (4 \, c d^{2} - b d e - 2 \, a e^{2}\right )} \arctan \left (-\frac {\sqrt {3} {\left (d^{\frac {1}{3}} e^{\left (-\frac {1}{3}\right )} - 2 \, x\right )} e^{\frac {1}{3}}}{3 \, d^{\frac {1}{3}}}\right ) e^{\left (-\frac {7}{3}\right )}}{9 \, d^{\frac {5}{3}}} + \frac {{\left (4 \, c d^{2} - b d e - 2 \, a e^{2}\right )} e^{\left (-\frac {7}{3}\right )} \log \left (-d^{\frac {1}{3}} x e^{\left (-\frac {1}{3}\right )} + x^{2} + d^{\frac {2}{3}} e^{\left (-\frac {2}{3}\right )}\right )}{18 \, d^{\frac {5}{3}}} - \frac {{\left (4 \, c d^{2} - b d e - 2 \, a e^{2}\right )} e^{\left (-\frac {7}{3}\right )} \log \left (d^{\frac {1}{3}} e^{\left (-\frac {1}{3}\right )} + x\right )}{9 \, d^{\frac {5}{3}}} + \frac {{\left (c d^{2} - b d e + a e^{2}\right )} x}{3 \, {\left (d x^{3} e^{3} + d^{2} e^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 323, normalized size = 1.52 \begin {gather*} \frac {24 \, c d^{4} x e + 6 \, a d^{2} x e^{3} + 6 \, \sqrt {\frac {1}{3}} {\left (2 \, a d x^{3} e^{4} - 4 \, c d^{4} e + {\left (b d^{2} x^{3} + 2 \, a d^{2}\right )} e^{3} - {\left (4 \, c d^{3} x^{3} - b d^{3}\right )} e^{2}\right )} {\left (d^{2}\right )}^{\frac {1}{6}} \arctan \left (\frac {\sqrt {\frac {1}{3}} {\left (2 \, {\left (d^{2}\right )}^{\frac {2}{3}} x e^{\frac {2}{3}} - {\left (d^{2}\right )}^{\frac {1}{3}} d e^{\frac {1}{3}}\right )} {\left (d^{2}\right )}^{\frac {1}{6}} e^{\left (-\frac {1}{3}\right )}}{d^{2}}\right ) e^{\left (-\frac {1}{3}\right )} - {\left (2 \, a x^{3} e^{3} - 4 \, c d^{3} + {\left (b d x^{3} + 2 \, a d\right )} e^{2} - {\left (4 \, c d^{2} x^{3} - b d^{2}\right )} e\right )} {\left (d^{2}\right )}^{\frac {2}{3}} e^{\frac {2}{3}} \log \left (d x^{2} e - {\left (d^{2}\right )}^{\frac {2}{3}} x e^{\frac {2}{3}} + {\left (d^{2}\right )}^{\frac {1}{3}} d e^{\frac {1}{3}}\right ) + 2 \, {\left (2 \, a x^{3} e^{3} - 4 \, c d^{3} + {\left (b d x^{3} + 2 \, a d\right )} e^{2} - {\left (4 \, c d^{2} x^{3} - b d^{2}\right )} e\right )} {\left (d^{2}\right )}^{\frac {2}{3}} e^{\frac {2}{3}} \log \left (d x e + {\left (d^{2}\right )}^{\frac {2}{3}} e^{\frac {2}{3}}\right ) + 6 \, {\left (3 \, c d^{3} x^{4} - b d^{3} x\right )} e^{2}}{18 \, {\left (d^{3} x^{3} e^{4} + d^{4} e^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.90, size = 206, normalized size = 0.97 \begin {gather*} \frac {c x}{e^{2}} + \frac {x \left (a e^{2} - b d e + c d^{2}\right )}{3 d^{2} e^{2} + 3 d e^{3} x^{3}} + \operatorname {RootSum} {\left (729 t^{3} d^{5} e^{7} - 8 a^{3} e^{6} - 12 a^{2} b d e^{5} + 48 a^{2} c d^{2} e^{4} - 6 a b^{2} d^{2} e^{4} + 48 a b c d^{3} e^{3} - 96 a c^{2} d^{4} e^{2} - b^{3} d^{3} e^{3} + 12 b^{2} c d^{4} e^{2} - 48 b c^{2} d^{5} e + 64 c^{3} d^{6}, \left ( t \mapsto t \log {\left (\frac {9 t d^{2} e^{2}}{2 a e^{2} + b d e - 4 c d^{2}} + x \right )} \right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.95, size = 199, normalized size = 0.93 \begin {gather*} c x e^{\left (-2\right )} + \frac {\sqrt {3} {\left (4 \, c d^{2} - b d e - 2 \, a e^{2}\right )} \arctan \left (\frac {\sqrt {3} {\left (2 \, x + \left (-d e^{\left (-1\right )}\right )^{\frac {1}{3}}\right )}}{3 \, \left (-d e^{\left (-1\right )}\right )^{\frac {1}{3}}}\right ) e^{\left (-1\right )}}{9 \, \left (-d e^{2}\right )^{\frac {2}{3}} d} + \frac {{\left (4 \, c d^{2} - b d e - 2 \, a e^{2}\right )} e^{\left (-1\right )} \log \left (x^{2} + \left (-d e^{\left (-1\right )}\right )^{\frac {1}{3}} x + \left (-d e^{\left (-1\right )}\right )^{\frac {2}{3}}\right )}{18 \, \left (-d e^{2}\right )^{\frac {2}{3}} d} + \frac {{\left (4 \, c d^{2} - b d e - 2 \, a e^{2}\right )} \left (-d e^{\left (-1\right )}\right )^{\frac {1}{3}} e^{\left (-2\right )} \log \left ({\left | x - \left (-d e^{\left (-1\right )}\right )^{\frac {1}{3}} \right |}\right )}{9 \, d^{2}} + \frac {{\left (c d^{2} x - b d x e + a x e^{2}\right )} e^{\left (-2\right )}}{3 \, {\left (x^{3} e + d\right )} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.80, size = 187, normalized size = 0.88 \begin {gather*} \frac {c\,x}{e^2}+\frac {\ln \left (e^{1/3}\,x+d^{1/3}\right )\,\left (-4\,c\,d^2+b\,d\,e+2\,a\,e^2\right )}{9\,d^{5/3}\,e^{7/3}}+\frac {x\,\left (c\,d^2-b\,d\,e+a\,e^2\right )}{3\,d\,\left (e^3\,x^3+d\,e^2\right )}+\frac {\ln \left (2\,e^{1/3}\,x-d^{1/3}+\sqrt {3}\,d^{1/3}\,1{}\mathrm {i}\right )\,\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (-4\,c\,d^2+b\,d\,e+2\,a\,e^2\right )}{9\,d^{5/3}\,e^{7/3}}-\frac {\ln \left (d^{1/3}-2\,e^{1/3}\,x+\sqrt {3}\,d^{1/3}\,1{}\mathrm {i}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (-4\,c\,d^2+b\,d\,e+2\,a\,e^2\right )}{9\,d^{5/3}\,e^{7/3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________